<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    //System.out.println("basepath:"+basepath);
%>
<html>
<head>
    <title>强杰银行登录系统</title>
    <base href="<%=basepath %>" />
    <%--<title> Master login Form Responsive Widget Template  :: w3layouts</title>--%>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content=" Master  Login Form Widget Tab Form,Login Forms,Sign up Forms,Registration Forms,News letter Forms,Elements"/>

    <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
    <link href="//fonts.googleapis.com/css?family=Cormorant+SC:300,400,500,600,700" rel="stylesheet">
    <link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i" rel="stylesheet">
    <script type="text/javascript" src="js/jquery-3.1.1.js"></script>
    <script src="js/crypto-js.js"></script>
    <script src="js/aes-3.1.2.js"></script>
    <script src="js/jsencrypt-3.0.0-beta.1.js"></script>

    <script type="text/javascript">
        var script = document.createElement("script");
        script.src = "js/encryption-js.js";
        document.getElementsByTagName('head')[0].appendChild(script);
    </script>

    <script type="application/x-javascript">
        addEventListener("load", function(){
            setTimeout(hideURLbar, 0);
            }, false);
        function hideURLbar(){
            window.scrollTo(0,1);
        }
    </script>
    <script type="text/javascript">
        $(document).ready(function() {
            $("#atb").click(function () {
                location = "login.jsp";
            });
            $("#phones").click(function () {
                location = "login_phone.jsp";
            });
            $("#register").click(function () {
                location = "/uc/user_add"
            });  
        })
        /*function pwd() {
            if(document.getElementById("userpwd").value == ""){
                //alert("密码不能为空!");
            }
            //alert("userpwd : "+document.getElementById("userpwd").value);
        }*/

    </script>

</head>
>

<body>
<div class="padding-all">
    <div class="header">
        <h1>强杰银行登录界面</h1>
    </div>
    <div class="design-w3l">
        <form action="/uc/sign_acount" method="post" name="acountform">
        <div class="mail-form-agile">
            <span class="account" id="atb">账号密码登录</span>
            <span class="phs" id="phones">手机号码登录</span>
                <div>
                    <input type="text" name="username" placeholder="请输入用户名或手机号" required="" class="test"/>
                    <input type="password" name="userpwd" id="userpwd" placeholder="请输入密码" required="" class="test padding"/>
                    <input type="hidden" name="key" id="key" />
                </div>

                <input type="button" value="登录" onclick="sub();" class="but"/>
                <input type="button" value="注册" id="register" class="but" />
        </div>
        </form>
        <div class="clear"> </div>
    </div>
</div>
</body>
</html>